package mil.af.amc.adpetracker.web.decorators;

import mil.af.amc.adpetracker.model.EquipmentItem;
import org.displaytag.decorator.TableDecorator;

/**
 * Decorator for ROS packages.
 *
 * Used to add a unique id to each row
 *
 * @author TSgt Jason Ferguson
 */

public class RosPackageDecorator extends TableDecorator {

    @Override
    public String addRowId() {
        EquipmentItem item = (EquipmentItem) getCurrentRowObject();
        return item.getId() + "-row";
    }
}
